package com.etone.smartAudit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etone.smartAudit.domain.EmailRecord;
import com.etone.smartAudit.vo.email.EmailRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author: sovy
 * @date: 2020/10/9
 * @description:
 */

@Mapper
public interface EmailRecordMapper extends BaseMapper<EmailRecord> {

    /**
     * 邮件发送记录
     *
     * @param createAdminId
     * @param subject
     * @param createTimeStartTime
     * @param createTimeEndTime
     * @param isSuccess
     * @return
     */
    List<EmailRecordVO> findList(@Param("createAdminId") Integer createAdminId, @Param("subject") String subject, @Param("createTimeStartTime") Date createTimeStartTime, @Param("createTimeEndTime") Date createTimeEndTime, @Param("isSuccess") Boolean isSuccess);
}